Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Pass data from one ViewController to another in iOS

I’ve just created second view controller class by extending from the UIViewController class. However, it doesn’t differ from the parent class until we add our own variables and methods. There are a couple of things we have to change: ...

How to disable user interaction of an iOS app

In iOS application there are only few ways to disable user interaction for the whole screen or UI. Some developers use property (User Interaction Enabled) for a specific control, some uses MBProgressHud class by displaying spinner or some uses us...

How to get iOS device type and version

If you need login device type, model and version of an iOS device, then use below code. You'll have to import below file first then:- // #import `<`sys/utsname.h> NSString* deviceName() { struct utsname systemInfo; uname...

Trim whitespace from a NSString in ios

If you want to trim occurrence of whitespace character from both ends of a NSString. Use below code to do it:- NSString *newString = [yourString stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]]...

UIImage Cropping in Objc

Some times we click picture from ios camera but it does not return us the same image as appears inside the camera frame. Use below function to get an image of exact size which was visible through camera. Follow these Steps:- Step 1. First o...

Change color of an UIImage in ios

You can pass array of colors in this function in order to change any color of an UIImage. Just pass UIColor and UIImage to this function. +(UIImage *)changeColorTo:(NSMutableArray*) array Transparent: (UIImage *)image { CGImageRef rawIma...

Change UIIMage background color in iOS

Here is a function which returns an image with different background of you choice. - (UIImage* )setBackgroundImageByColor:(UIColor *)backgroundColor withFrame:(CGRect )rect{ // tcv - temporary colored view UIView *tcv = [[UIView alloc] ini...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: